﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
using SD.Database.Classes;
using DBAccess;
using System.Collections.Generic;

namespace SD.Database
{
    public partial class StoredProcedures
    {
        public static void InsertBattle(int aID, int aCV, int dID, int dCV, DateTime time, int sId, int pId, int wID)
        {
            DAL.GetInstance().InsertData("Insert Into Battles Values ( @param0, @param1, @param2, @param3, @param4, @param5, @param6, @param7)",
                new List<object>() { aID, dID, aCV, dCV, time, sId, pId, wID });
        }

        public static void InsertNews(int pid, DateTime t, string text)
        {
            DAL.GetInstance().InsertData("Insert Into News Values ( @param0, @param1, @param2)", new List<object>() { pid, t, text });
        }

        public static void InsertLog(DateTime t, string function, string text)
        {
            DAL.GetInstance().InsertData("Insert Into Logs Values ( @param0, @param1, @param2)", new List<object>() { t, function, text });
        }
    };
}